class clusters::otherusers {
  cron { 'buaausers':
    command   => '/root/bin/buaausers.sh > /home/cc/suzz/buaa/accounts.pp',
    user      => 'root',
    minute    => '30',
    hour      => '*'
  }
  file { "/root/bin/buaausers.sh":
    mode       =>  '755',
    owner      =>  0,
    group      =>  0,
    source     =>  "puppet:///modules/${module_name}/buaausers.sh",
    require  => File['/root/bin'],
  }

  cron { 'pkuusers':
    command   => '/root/bin/pkuusers.sh > /tmp/pkuaccounts.pp; scp /tmp/pkuaccounts.pp centxman:/etc/puppetlabs/code/environments/production/modules/pku/manifests/accounts.pp',
    user      => 'root',
    minute    => '*/5',
    hour      => '*'
  }
  file { "/root/bin/pkuusers.sh":
    mode       =>  '755',
    owner      =>  0,
    group      =>  0,
    source     =>  "puppet:///modules/${module_name}/pkuusers.sh",
    require  => File['/root/bin'],
  }
}
